﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using GS.DataConnection;

namespace GS.CMS.Entities
{
    public class Category
    {
        public DataSet GetAllFunction()
        {
            return SqlProvider.GetDataSet("pro_get_all_function", "dsFuntion");
        }
        public DataTable GetRootCategory()
        {
            return SqlProvider.GetTable("pro_category_sel", "dtRootCategory");
        }
        public DataTable GetCategoryByCategoryID(string CategoryID)
        {
            System.Collections.Hashtable ht = new System.Collections.Hashtable();
            ht.Add("@CategoryID", CategoryID);
            return SqlProvider.GetTable("pro_category_get_by_categoryid", "dtCategory");
        }
    }
}
